<%- contentFor('mainContent') %>

<div class="container error-container">
    <h1 class="error-code"><%= error.status || 500 %> <code><%= error.message %></code></h1>
    <span class="mb-4">请求处理遇到问题</span>
    <pre class="text-start bg-light p-3 rounded">
        <%= error.stack %>
    </pre>
    <a href="/" class="btn btn mt-4">返回首页</a>
</div>

<%- contentFor('pageJS') %>
<script>
    document.querySelector('.text-start').classList.add('active');
</script>